package cn.bx.bid.ctrl;


import cn.bx.bid.entity.Education;
import cn.bx.bid.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("Education")
public class EducationController {
    @Autowired
    private EducationService service;

    @RequestMapping(value = "findEducations",produces="application/json;charset=UTF-8")
    @ResponseBody
    public List<Education> findEducations(){
        List<Education> list = this.service.findALL();
        return list;
    }

}
